package o;

import androidx.annotation.Nullable;
import o.abr.c;
import o.abr.e;

public final class aja extends abr {
    private static final Object ˋ = new Object();
    private final long ʻ;
    private final long ʼ;
    private final boolean ʽ;
    @Nullable
    private final Object ˊॱ;
    private final long ˎ;
    private final long ˏ;
    private final long ॱ;
    private final long ॱॱ;
    private final boolean ᐝ;

    public aja(long j, boolean z, boolean z2, @Nullable Object obj) {
        this(j, j, 0, 0, z, z2, obj);
    }

    public aja(long j, long j2, long j3, long j4, boolean z, boolean z2, @Nullable Object obj) {
        this(-9223372036854775807L, -9223372036854775807L, j, j2, j3, j4, z, z2, obj);
    }

    public aja(long j, long j2, long j3, long j4, long j5, long j6, boolean z, boolean z2, @Nullable Object obj) {
        this.ˎ = j;
        this.ˏ = j2;
        this.ॱ = j3;
        this.ॱॱ = j4;
        this.ʼ = j5;
        this.ʻ = j6;
        this.ᐝ = z;
        this.ʽ = z2;
        this.ˊॱ = obj;
    }

    public int ॱ() {
        return 1;
    }

    public e ˊ(int i, e eVar, boolean z, long j) {
        amm.ˏ(i, 0, 1);
        Object obj = z ? this.ˊॱ : null;
        long j2 = this.ʻ;
        if (this.ʽ && j != 0) {
            if (this.ॱॱ == -9223372036854775807L) {
                j2 = -9223372036854775807L;
            } else {
                j2 += j;
                if (j2 > this.ॱॱ) {
                    j2 = -9223372036854775807L;
                }
            }
        }
        return eVar.ˏ(obj, this.ˎ, this.ˏ, this.ᐝ, this.ʽ, j2, this.ॱॱ, 0, 0, this.ʼ);
    }

    public int ˎ() {
        return 1;
    }

    public c ॱ(int i, c cVar, boolean z) {
        Object obj;
        amm.ˏ(i, 0, 1);
        if (z) {
            obj = ˋ;
        } else {
            obj = null;
        }
        return cVar.ˏ(null, obj, 0, this.ॱ, -this.ʼ);
    }

    public int ˎ(Object obj) {
        return ˋ.equals(obj) ? 0 : -1;
    }

    public Object ˋ(int i) {
        amm.ˏ(i, 0, 1);
        return ˋ;
    }
}
